package org.familysearch.fsapi.gwt.server.dao;

public abstract class DAOFactory {

	public static final Class REST = org.familysearch.fsapi.gwt.server.dao.rest.RESTDAOFactory.class;

    public static DAOFactory instance(Class factory) {
        try {
        	return (DAOFactory)factory.newInstance();
        } catch (Exception ex) {
            throw new RuntimeException("Couldn't create DAOFactory: " + factory);
        }
    }
    
    // Add your DAO interfaces here
    public abstract TempleDAO getTempleDAO();
    public abstract IdentityDAO getIdentityDAO();
    public abstract PersonDAO getPersonDAO();
    //public abstract UserDAO getUserDAO();    
}
